﻿//
// Created: 2018/12/2
// Author: chenqiang
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xproject.Framework.Core;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model.WXshopBuiness
{
    public class  ProductSpecification:IEntity
    {
    
       ///<summary>
       ///
       ///<summary>
       public string ProductSpecificationId  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string ProductId  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string SpecificationName  { get; set; } 
       ///<summary>
       ///售价
       ///<summary>
       public decimal SalesPrice  { get; set; } 

        public string StrSalesPrice {
            get {
                return SalesPrice.ToString("#0.00");
            }
        }
       ///<summary>
       ///标价
       ///<summary>
        public decimal OrignPrice  { get; set; } 
       ///<summary>
       ///库存
       ///<summary>
       public int Stock  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public DateTime CreateTime  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public int Enable  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Remarks  { get; set; } 
         
        public int Sort { get; set; }

        public decimal CostPrice { get; set; }

       [NotMapped]
        public long Id { get; set; }

        [NotMapped]
        public EntityState EntityState { get; set; }

        public int CompareTo(object obj)
        {
            throw new NotImplementedException();
        }
    }
}